﻿using IndoorPosition.Server.Core.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Application
{
    /// <summary>
    /// 地理数据相关逻辑接口
    /// </summary>
    public interface IGeoDataService
    {
        /// <summary>
        /// 保存地理数据（GeoJson）
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<FeatureClassMeta> StoreAsync(GeoDataInputDto input);

        /// <summary>
        /// 数据是否存在
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<bool> DataExistAsync(string name);

        /// <summary>
        /// 删除表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task DeleteDataAsync(string name);
    }
}
